As per the fact the menu item is an object we can just vfunc's.
This is not possible for events as specific union object is passed instead of
just the Clutter.Event.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/499
}
if (params.reactive && params.hover)
this.connect('notify::hover', this._onHoverChanged.bind(this));
-
- this.connect('key-focus-in', this._onKeyFocusIn.bind(this));
- this.connect('key-focus-out', this._onKeyFocusOut.bind(this));
}
get actor() {
return Clutter.EVENT_PROPAGATE;
}
- _onKeyFocusIn(actor) {
+ vfunc_key_focus_in() {
+ super.vfunc_key_focus_in();
this.setActive(true);
}
- _onKeyFocusOut(actor) {
+ vfunc_key_focus_out() {
+ super.vfunc_key_focus_out();
this.setActive(false);
}